import { createI18n } from 'vue-i18n'
import messages from '@/lang/index.js'
import { getLang } from '@/api'
const lang =getLang()

const i18n = createI18n({
  locale: lang, // set locale
  messages,
})

export default i18n
